Optimal. Leaf size=221 \[ \frac {\log \left (c \left (d+e x^n\right )^p\right ) \log \left (\frac {e \left (\sqrt {g}-\sqrt {-f} x^n\right )}{d \sqrt {-f}+e \sqrt {g}}\right )}{2 f n}+\frac {\log \left (c \left (d+e x^n\right )^p\right ) \log \left (-\frac {e \left (\sqrt {g}+\sqrt {-f} x^n\right )}{d \sqrt {-f}-e \sqrt {g}}\right )}{2 f n}+\frac {p \text {Li}_2\left (\frac {\sqrt {-f} \left (d+e x^n\right )}{d \sqrt {-f}-e \sqrt {g}}\right )}{2 f n}+\frac {p \text {Li}_2\left (\frac {\sqrt {-f} \left (d+e x^n\right )}{d \sqrt {-f}+e \sqrt {g}}\right )}{2 f n} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.31, antiderivative size = 221, normalized size of antiderivative = 1.00, number of steps
used = 9, number of rules used = 7, integrand size = 27, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.259, Rules used = {2525, 269, 266,
2463, 2441, 2440, 2438} \begin {gather*} \frac {p \text {PolyLog}\left (2,\frac {\sqrt {-f} \left (d+e x^n\right )}{d \sqrt {-f}-e \sqrt {g}}\right )}{2 f n}+\frac {p \text {PolyLog}\left (2,\frac {\sqrt {-f} \left (d+e x^n\right )}{d \sqrt {-f}+e \sqrt {g}}\right )}{2 f n}+\frac {\log \left (c \left (d+e x^n\right )^p\right ) \log \left (\frac {e \left (\sqrt {g}-\sqrt {-f} x^n\right )}{d \sqrt {-f}+e \sqrt {g}}\right )}{2 f n}+\frac {\log \left (c \left (d+e x^n\right )^p\right ) \log \left (-\frac {e \left (\sqrt {-f} x^n+\sqrt {g}\right )}{d \sqrt {-f}-e \sqrt {g}}\right )}{2 f n} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 266
Rule 269
Rule 2438
Rule 2440
Rule 2441
Rule 2463
Rule 2525
Rubi steps
\begin {align*} \int \frac {\log \left (c \left (d+e x^n\right )^p\right )}{x \left (f+g x^{-2 n}\right )} \, dx &=\frac {\text {Subst}\left (\int \frac {\log \left (c (d+e x)^p\right )}{\left (f+\frac {g}{x^2}\right ) x} \, dx,x,x^n\right )}{n}\\ &=\frac {\text {Subst}\left (\int \left (-\frac {\sqrt {-f} \log \left (c (d+e x)^p\right )}{2 f \left (\sqrt {g}-\sqrt {-f} x\right )}+\frac {\sqrt {-f} \log \left (c (d+e x)^p\right )}{2 f \left (\sqrt {g}+\sqrt {-f} x\right )}\right ) \, dx,x,x^n\right )}{n}\\ &=\frac {\text {Subst}\left (\int \frac {\log \left (c (d+e x)^p\right )}{\sqrt {g}-\sqrt {-f} x} \, dx,x,x^n\right )}{2 \sqrt {-f} n}-\frac {\text {Subst}\left (\int \frac {\log \left (c (d+e x)^p\right )}{\sqrt {g}+\sqrt {-f} x} \, dx,x,x^n\right )}{2 \sqrt {-f} n}\\ &=\frac {\log \left (c \left (d+e x^n\right )^p\right ) \log \left (\frac {e \left (\sqrt {g}-\sqrt {-f} x^n\right )}{d \sqrt {-f}+e \sqrt {g}}\right )}{2 f n}+\frac {\log \left (c \left (d+e x^n\right )^p\right ) \log \left (-\frac {e \left (\sqrt {g}+\sqrt {-f} x^n\right )}{d \sqrt {-f}-e \sqrt {g}}\right )}{2 f n}-\frac {(e p) \text {Subst}\left (\int \frac {\log \left (\frac {e \left (\sqrt {g}-\sqrt {-f} x\right )}{d \sqrt {-f}+e \sqrt {g}}\right )}{d+e x} \, dx,x,x^n\right )}{2 f n}-\frac {(e p) \text {Subst}\left (\int \frac {\log \left (\frac {e \left (\sqrt {g}+\sqrt {-f} x\right )}{-d \sqrt {-f}+e \sqrt {g}}\right )}{d+e x} \, dx,x,x^n\right )}{2 f n}\\ &=\frac {\log \left (c \left (d+e x^n\right )^p\right ) \log \left (\frac {e \left (\sqrt {g}-\sqrt {-f} x^n\right )}{d \sqrt {-f}+e \sqrt {g}}\right )}{2 f n}+\frac {\log \left (c \left (d+e x^n\right )^p\right ) \log \left (-\frac {e \left (\sqrt {g}+\sqrt {-f} x^n\right )}{d \sqrt {-f}-e \sqrt {g}}\right )}{2 f n}-\frac {p \text {Subst}\left (\int \frac {\log \left (1+\frac {\sqrt {-f} x}{-d \sqrt {-f}+e \sqrt {g}}\right )}{x} \, dx,x,d+e x^n\right )}{2 f n}-\frac {p \text {Subst}\left (\int \frac {\log \left (1-\frac {\sqrt {-f} x}{d \sqrt {-f}+e \sqrt {g}}\right )}{x} \, dx,x,d+e x^n\right )}{2 f n}\\ &=\frac {\log \left (c \left (d+e x^n\right )^p\right ) \log \left (\frac {e \left (\sqrt {g}-\sqrt {-f} x^n\right )}{d \sqrt {-f}+e \sqrt {g}}\right )}{2 f n}+\frac {\log \left (c \left (d+e x^n\right )^p\right ) \log \left (-\frac {e \left (\sqrt {g}+\sqrt {-f} x^n\right )}{d \sqrt {-f}-e \sqrt {g}}\right )}{2 f n}+\frac {p \text {Li}_2\left (\frac {\sqrt {-f} \left (d+e x^n\right )}{d \sqrt {-f}-e \sqrt {g}}\right )}{2 f n}+\frac {p \text {Li}_2\left (\frac {\sqrt {-f} \left (d+e x^n\right )}{d \sqrt {-f}+e \sqrt {g}}\right )}{2 f n}\\ \end {align*}
________________________________________________________________________________________
Mathematica [F]
time = 1.32, size = 0, normalized size = 0.00 \begin {gather*} \int \frac {\log \left (c \left (d+e x^n\right )^p\right )}{x \left (f+g x^{-2 n}\right )} \, dx \end {gather*}
Verification is not applicable to the result.
[In]
[Out]
________________________________________________________________________________________
Maple [C] Result contains higher order function than in optimal. Order 9 vs. order
4.
time = 0.85, size = 461, normalized size = 2.09
method | result | size |
risch | \(\frac {\ln \left (g +f \,x^{2 n}\right ) \ln \left (\left (d +e \,x^{n}\right )^{p}\right )}{2 n f}-\frac {p \ln \left (d +e \,x^{n}\right ) \ln \left (g +f \,x^{2 n}\right )}{2 n f}+\frac {p \ln \left (d +e \,x^{n}\right ) \ln \left (\frac {e \sqrt {-f g}-f \left (d +e \,x^{n}\right )+d f}{e \sqrt {-f g}+d f}\right )}{2 n f}+\frac {p \ln \left (d +e \,x^{n}\right ) \ln \left (\frac {e \sqrt {-f g}+f \left (d +e \,x^{n}\right )-d f}{e \sqrt {-f g}-d f}\right )}{2 n f}+\frac {p \dilog \left (\frac {e \sqrt {-f g}-f \left (d +e \,x^{n}\right )+d f}{e \sqrt {-f g}+d f}\right )}{2 n f}+\frac {p \dilog \left (\frac {e \sqrt {-f g}+f \left (d +e \,x^{n}\right )-d f}{e \sqrt {-f g}-d f}\right )}{2 n f}+\frac {i \ln \left (g +f \,x^{2 n}\right ) \pi \,\mathrm {csgn}\left (i \left (d +e \,x^{n}\right )^{p}\right ) \mathrm {csgn}\left (i c \left (d +e \,x^{n}\right )^{p}\right )^{2}}{4 n f}-\frac {i \ln \left (g +f \,x^{2 n}\right ) \pi \,\mathrm {csgn}\left (i \left (d +e \,x^{n}\right )^{p}\right ) \mathrm {csgn}\left (i c \left (d +e \,x^{n}\right )^{p}\right ) \mathrm {csgn}\left (i c \right )}{4 n f}-\frac {i \ln \left (g +f \,x^{2 n}\right ) \pi \mathrm {csgn}\left (i c \left (d +e \,x^{n}\right )^{p}\right )^{3}}{4 n f}+\frac {i \ln \left (g +f \,x^{2 n}\right ) \pi \mathrm {csgn}\left (i c \left (d +e \,x^{n}\right )^{p}\right )^{2} \mathrm {csgn}\left (i c \right )}{4 n f}+\frac {\ln \left (g +f \,x^{2 n}\right ) \ln \left (c \right )}{2 n f}\) | \(461\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Failed to integrate} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {could not integrate} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F(-1)] Timed out
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Timed out} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {could not integrate} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [F]
time = 0.00, size = -1, normalized size = -0.00 \begin {gather*} \int \frac {\ln \left (c\,{\left (d+e\,x^n\right )}^p\right )}{x\,\left (f+\frac {g}{x^{2\,n}}\right )} \,d x \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________